import request from '@/utils/request'

// 查询商品侵权词列表
export function listSellerStoreProductInfringingKeywords(query) {
  return request({
    url: '/gather/gather/sellerStoreProductInfringingKeywords/list',
    method: 'get',
    params: query
  })
}

// 查询商品侵权词详细
export function getSellerStoreProductInfringingKeywords(id) {
  return request({
    url: '/gather/gather/sellerStoreProductInfringingKeywords/' + id,
    method: 'get'
  })
}

// 新增商品侵权词
export function addSellerStoreProductInfringingKeywords(data) {
  return request({
    url: '/gather/gather/sellerStoreProductInfringingKeywords',
    method: 'post',
    data: data
  })
}

// 修改商品侵权词
export function updateSellerStoreProductInfringingKeywords(data) {
  return request({
    url: '/gather/gather/sellerStoreProductInfringingKeywords',
    method: 'put',
    data: data
  })
}

// 删除商品侵权词
export function delSellerStoreProductInfringingKeywords(id) {
  return request({
    url: '/gather/gather/sellerStoreProductInfringingKeywords/' + id,
    method: 'delete'
  })
}

// 设置关键词状态
export function setKeyWordsStatus(data) {
  return request({
    url: '/gather/gather/sellerStoreProductInfringingKeywords/setKeyWordsStatus',
    method: 'get',
    params: data
  })
}

// 查询商品侵权词例外情况列表
export function listSellerStoreProductInfringingKeywordsExceptions(query) {
  return request({
    url: '/gather/gather/sellerStoreProductInfringingKeywordsExceptions/list',
    method: 'get',
    params: query
  })
}

// 查询商品侵权词例外情况详细
export function getSellerStoreProductInfringingKeywordsExceptions(id) {
  return request({
    url: '/gather/gather/sellerStoreProductInfringingKeywordsExceptions/' + id,
    method: 'get'
  })
}

// 新增商品侵权词例外情况
export function addSellerStoreProductInfringingKeywordsExceptions(data) {
  return request({
    url: '/gather/gather/sellerStoreProductInfringingKeywordsExceptions',
    method: 'post',
    data: data
  })
}

// 修改商品侵权词例外情况
export function updateSellerStoreProductInfringingKeywordsExceptions(data) {
  return request({
    url: '/gather/gather/sellerStoreProductInfringingKeywordsExceptions/setKeyWordsExceptionsStatus',
    method: 'get',
    params: data
  })
}

// 删除商品侵权词例外情况
export function delSellerStoreProductInfringingKeywordsExceptions(id) {
  return request({
    url: '/gather/gather/sellerStoreProductInfringingKeywordsExceptions/' + id,
    method: 'delete'
  })
}
